Component({
  behaviors: [],
  properties: {
    productList: {
      type: Array,
      value: [],
    },
  },
  data: {},
  lifetimes: {
    created() {},
    attached() {},
    moved() {},
    detached() {},
  },
  methods: {
    handleToProductDetail(e) {
      const productId = e.currentTarget.dataset.id;
      wx.navigateTo({
        url: `/packages/product/pages/product-detail/product-detail?id=${productId}`,
      });
    },
  },
});
